<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <!-- 引入axios库 -->
    <script src="./node_modules/axios/dist/axios.js"></script>
    <script>
        console.log(axios);// axios实例
    // axios post请求 配合async await使用 异步化同步
        async function test(){
            let res = await axios.post("https://apimusic.linweiqin.com/song/url?id=421423808",{
                    username:"zyx"// 把id以查询串的方式拼接在了url后面
                }
            );
            console.log(res);
        }
        test();
        



    </script>
</body>
</html>